Skip to content

[Stable10] Catch internal server error from remote on decline#35321

Merged
phil-davis merged 1 commit into
stable10from
stable10-catch-exception-on-decline
May 24, 2019
Merged

[Stable10] Catch internal server error from remote on decline#35321
phil-davis merged 1 commit into
stable10from
stable10-catch-exception-on-decline

Conversation

@VicDeo

@VicDeo VicDeo commented May 24, 2019

Copy link
Copy Markdown
Contributor

Backport of #35178

Description

Handle 500 exception on declining a share

Motivation and Context

Before 10.2 response for declining non-existing shares was 500
#34786 changes HTTP status from 500 to 410
But declining any non-existing share for OC lower than 10.2 still causing unhandled exception.

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@VicDeo VicDeo added this to the development milestone May 24, 2019
@VicDeo VicDeo self-assigned this May 24, 2019
@codecov

codecov Bot commented May 24, 2019

Copy link
Copy Markdown

Codecov Report

Merging #35321 into stable10 will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff               @@
##             stable10   #35321      +/-   ##
==============================================
- Coverage       64.64%   64.64%   -0.01%     
- Complexity      20089    20093       +4     
==============================================
  Files            1289     1289              
  Lines           76943    76946       +3     
  Branches         1300     1300              
==============================================
+ Hits            49738    49739       +1     
- Misses          26821    26823       +2     
  Partials          384      384
Flag Coverage Δ Complexity Δ
#javascript 53.85% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.78% <0%> (-0.01%) 20093 <0> (+4)
Impacted Files Coverage Δ Complexity Δ
...s/federatedfilesharing/lib/AppInfo/Application.php 44.96% <0%> (-0.93%) 23 <0> (+4)
lib/private/Files/Storage/Wrapper/Encryption.php 76.41% <0%> (+0.24%) 156% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7cda0d...c07b0ce. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented May 24, 2019

Copy link
Copy Markdown

Codecov Report

Merging #35321 into stable10 will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff               @@
##             stable10   #35321      +/-   ##
==============================================
- Coverage       64.64%   64.64%   -0.01%     
- Complexity      20089    20093       +4     
==============================================
  Files            1289     1289              
  Lines           76943    76946       +3     
  Branches         1300     1300              
==============================================
+ Hits            49738    49739       +1     
- Misses          26821    26823       +2     
  Partials          384      384
Flag Coverage Δ Complexity Δ
#javascript 53.85% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.78% <0%> (-0.01%) 20093 <0> (+4)
Impacted Files Coverage Δ Complexity Δ
...s/federatedfilesharing/lib/AppInfo/Application.php 44.96% <0%> (-0.93%) 23 <0> (+4)
lib/private/Files/Storage/Wrapper/Encryption.php 76.41% <0%> (+0.24%) 156% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7cda0d...c07b0ce. Read the comment docs.

@phil-davis phil-davis merged commit 2798149 into stable10 May 24, 2019
@delete-merged-branch delete-merged-branch Bot deleted the stable10-catch-exception-on-decline branch May 24, 2019 10:44
@davitol davitol mentioned this pull request Sep 3, 2019
13 tasks
@davitol

davitol commented Sep 10, 2019

Copy link
Copy Markdown
Contributor

@VicDeo Following the steps from the OP I get a 404:

Screen Shot 2019-09-10 at 12 49 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants